package com.p2p.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 罗永东
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Iplog implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String ip;

    private Integer loginstate;

    private String username;

    private Long logininfoid;

    private Integer logintype;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "logintime",fill = FieldFill.INSERT)
    private LocalDateTime logintime;


}
